import {METHOD, request} from "@/utils/request";
import {ADD_NOTICES, GET_NOTICES} from "@/services/api";

export async function getNotices(pageNum = 1, pageSize = 15, queryStr = '') {
    return request(GET_NOTICES + `?pageNum=${pageNum}&pageSize=${pageSize}&queryStr=${queryStr}`, METHOD.GET)
}
export async function postNotices(msg,remark) {
    return request(ADD_NOTICES , METHOD.POST,{msg,remark})
}
export default {getNotices,postNotices}